<?php
	
	if(isset($_POST["grptd"])) {
		session_start();
		$_SESSION["tdfilter"] = $_POST["grptd"];
	}
	else if(isset($_POST["grptp"])) {
		session_start();
		$_SESSION["tpfilter"] = $_POST["grptp"];
	}
	header('Location: '.$_SERVER['HTTP_REFERER'], true, 302); //revenir a la page precedante en rafraichissant la page
	
?>
